package com.shfl.models;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class ResetInfo implements Serializable {

    @NotBlank(message = "请输入邮箱")
    @Email(message = "请输入正确的邮箱")
    private String mailAddess;

    @NotBlank(message = "请输入验证码")
    @Length(max = 6, message = "验证码长度最长{max}个字符")
    private String verifyCode;

    @NotBlank(message = "请输入密码")
    private String password;

}
